package org.example;

import org.example.config.springconfig;
import org.example.servlet.UserServlet;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.lang.model.AnnotatedConstruct;

public class app {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(springconfig.class);
        UserServlet bean = annotationConfigApplicationContext.getBean(UserServlet.class);
//        bean.size();
        int text = bean.text();
        System.out.println(text);
//        bean.data(1);
    }
}
